package com.dmcloud.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dmcloud.system.entity.SysRole;
import com.dmcloud.system.mapper.SysRoleMapper;
import com.dmcloud.system.service.ISysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaodao
 * @since 2019-10-30
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

    @Override
    public List<SysRole> findRolesByUserId(String userId) {
        List<SysRole> allRoleByUserId = baseMapper.findAllRoleByUserId(userId);
        return allRoleByUserId;
    }
}
